package com.jellyleo.activiti.feign;

import com.woniu.dto.DirectOrdersDto;
import com.woniu.until.ResponseData;
import com.woniu.until.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "ecp-direct-orders")
public interface DirectOrderFeign {

    @PostMapping("/saveDirectOrder")
     ResultData saveDirectOrder(@RequestBody DirectOrdersDto directOrders);
    @GetMapping("/getDirectOrders")
     ResponseData<?>getDirectOrders();
}
